<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>layui扩展图标 Demo</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="./layui/css/layui.css" media="all">
</head>
<body>
<div id="app">
    <button class="layui-btn">
        <i class="layui-icon layui-extend-cailiao"></i> 材料
    </button>

</div>

<script type="text/javascript" src="./layui/layui.js" charset="utf-8"></script>
<script type="text/javascript">
    layui.config({
        // 配置 layui 第三方扩展组件存放的基础目录
        base: './layui_exts/'
    }).extend({
        iconExtend: 'iconExtend/iconExtend'
    }).use(['jquery', 'iconExtend'], function () {
        //必须 在use中声明 iconExtend
    });
</script>
</body>
</html>
